Ext.regModel('Photo', {
    fields:[
        {name:'id'},
        {name:'farm'},
        {name:'owner'},
        {name:'secret'},
        {name:'server'},
        {name:'title'},
        {name:'url'},        
        {name:'name'}
    ],
    setUrl: function() {
        var url = "http://farm" + this.get('farm') +
            ".static.flickr.com/" + this.get('server') +
            "/" + this.get('id') + "_" + this.get('secret') + "_s.jpg";

        var script = document.createElement("script");
        script.setAttribute("src", "http://i.tinySrc.mobi/data.sink.Main.setPhotoUrl-" + this.getId() + "/" + url);
        script.setAttribute("type","text/javascript");
        document.body.appendChild(script);
    }
});
